package com.three.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @TableName tb_product
 */
@TableName(value ="tb_product")
@Data
public class Product implements Serializable {
    @TableId(type= IdType.AUTO)
    private Integer productId;

    private Integer proTypeId;

    private String productName;

    private String picture;

    private Integer integral;

    private String integralEnabled;

    private BigDecimal loadPrice;

    private BigDecimal newPrice;

    private Integer couponAmount;

    private Long monthlySales;

    private Integer couponId;

    private String isFreightShipping;

    private BigDecimal freight;

    private Integer storeId;

    private String isline;

    private String prompt;

    private String productDetails;

    private Integer createId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    private Integer updateId;

    private String remark;

    private String examineStatus;

    private ProductType productType;
    private Store store;
    @TableField(exist = false)
    private ProductOrder productOrder;

    private static final long serialVersionUID = 1L;
}